 package uk.co.mmscomputing.device.twain;
 
 public class TwainImageLayout
   implements TwainConstants
 {
   TwainSource source;
   byte[] buf = new byte[28];
 
   public TwainImageLayout(TwainSource paramTwainSource) {
     this.source = paramTwainSource;
   }
 
   public void get() throws TwainIOException {
     this.source.call(2, 258, 1, this.buf);
   }
 
   public void getDefault() throws TwainIOException {
     this.source.call(2, 258, 3, this.buf);
   }
 
   public void set() throws TwainIOException {
     this.source.call(2, 258, 6, this.buf);
   }
 
   public void reset() throws TwainIOException {
     this.source.call(2, 258, 7, this.buf);
   }
   public double getLeft() {
     return jtwain.getFIX32(this.buf, 0); } 
   public void setLeft(double paramDouble) { jtwain.setFIX32(this.buf, 0, paramDouble); } 
   public double getTop() { return jtwain.getFIX32(this.buf, 4); } 
   public void setTop(double paramDouble) { jtwain.setFIX32(this.buf, 4, paramDouble); } 
   public double getRight() { return jtwain.getFIX32(this.buf, 8); } 
   public void setRight(double paramDouble) { jtwain.setFIX32(this.buf, 8, paramDouble); } 
   public double getBottom() { return jtwain.getFIX32(this.buf, 12); } 
   public void setBottom(double paramDouble) { jtwain.setFIX32(this.buf, 12, paramDouble); } 
   public int getDocumentNumber() {
     return jtwain.getINT32(this.buf, 16); } 
   public void setDocumentNumber(int paramInt) { jtwain.setINT32(this.buf, 16, paramInt); } 
   public int getPageNumber() { return jtwain.getINT32(this.buf, 20); } 
   public void setPageNumber(int paramInt) { jtwain.setINT32(this.buf, 20, paramInt); } 
   public int getFrameNumber() { return jtwain.getINT32(this.buf, 24); } 
   public void setFrameNumber(int paramInt) { jtwain.setINT32(this.buf, 24, paramInt); }
 
   public String toString() {
     String str = "TwainImageLayout\n";
     str = str + "\tleft   =" + getLeft() + "\n";
     str = str + "\ttop    =" + getTop() + "\n";
     str = str + "\tright  =" + getRight() + "\n";
     str = str + "\tbottom =" + getBottom() + "\n";
 
     str = str + "\tdocument number =" + getDocumentNumber() + "\n";
     str = str + "\tpage number     =" + getPageNumber() + "\n";
     str = str + "\tframe number    =" + getFrameNumber() + "\n";
     return str;
   }
 }

